<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/12/2
 * Time: 11:05
 */


var_dump($_FILES);

print_r('上传的文件名： '.$_FILES['file']['name'].'<br />');
print_r('上传临时文件路径： '.$_FILES['file']['tmp_name'].'<br />');

move_uploaded_file($_FILES['file']['tmp_name'],'public/msg/'.$_FILES['file']['name']);